package com.yingma.common.controller;

import com.yingma.common.util.AjaxResult;
import com.yingma.system.entity.JcRegistration;
import com.yingma.system.service.JcRegistrationService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (JcRegistration)表控制层
 *
 * @author makejava
 * @since 2020-04-02 19:10:19
 */
@RestController
@RequestMapping("jcRegistration")
public class JcRegistrationController {
    /**
     * 服务对象
     */
    @Resource
    private JcRegistrationService jcRegistrationService;

    /**
     *
     * @param companyName
     * @return
     */
    @ApiOperation("查询注册公司信息")
    @PostMapping("searchRegisterCompany")
    public AjaxResult selectOne(@RequestParam("companyName")String companyName, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer PageSize) {
        List<JcRegistration> list= jcRegistrationService.searchRegisterCompany(companyName, pageNum, PageSize);
        return AjaxResult.success(list);
    }

}
